package com.twu.biblioteca;

import java.util.List;

public class Controller {

    private View view;
    private List<Book> books;
    private Menu menu;

    public Controller(View view, List<Book> books, Menu menu) {
        this.view = view;
        this.books = books;
        this.menu = menu;
    }

    public void initialize() {
        this.view.showWelcomeMessage();
        this.view.showMenu(menu);
    }

    public View getView() {
        return view;
    }

    public void setView(View view) {
        this.view = view;
    }

    public void setBooks(List<Book> books) {
        this.books = books;
    }

    public List<Book> getBooks() {
        return books;
    }
}
